export default {
    state: () => ({
        showLogin: false,
        loginType: 'login',
        dist: ''
    }),
    mutations: {
        SHOW_LOGIN(state, { type, dist }) {
            state.showLogin = true
            state.loginType = type || 'login'
            state.dist = dist || ''
        },
        SET_DIST(state, dist) {
            state.dist = dist
        },
        HIDE_LOGIN(state) {
            state.showLogin = false
            state.loginType = 'login'
        }
    }
}
